package com.sservice.service.service.impl;

import com.sservice.model.dao.AdsMapper;
import com.sservice.model.entity.Ads;
import com.sservice.model.vo.AdsVo;
import com.sservice.service.service.IAdsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */

@Service
public class IAdsServiceImpl implements IAdsService {
    @Autowired
    AdsMapper dao;
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Ads record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(Ads record) {
        return dao.insertSelective(record);
    }

    @Override
    public Ads selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Ads record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Ads record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<AdsVo> selectAll(AdsVo arg) {
        return dao.selectAll(arg);
    }

    @Override
    public List<Ads> queryByPage(AdsVo asv) {
        return dao.queryByPage(asv);
    }

    @Override
    public int queryCount(AdsVo asv) {
        return dao.queryCount(asv);
    }

    ;
}
